const BaseRest = require('../rest.js');
module.exports = class extends BaseRest
{
    async getAction()
    {

        let data;
        if (this._guid)
        {
            const pk = this.modelInstance.pk;
            data = await this.modelInstance.where({[pk]: this._guid}).find();
            return this.success(data);
        }
        data = await this.modelInstance.select();
        return this.success(data);
    }

};